package com.camera.yl.bean;

import android.content.Intent;
import android.graphics.drawable.Drawable;

public class MenuItemInfo  {

    public String name;
    public String args;
    public int iconResId;
    public Drawable iconDrawable;
    public Intent intent;

    public MenuItemInfo(String name, int iconId, String args) {
        this.name = name;
        this.args = args;
        this.iconResId = iconId;
    }
    public MenuItemInfo(String name, int iconId, Intent intent) {
        this.name = name;
        this.args = "";
        this.intent = intent;
        this.iconResId = iconId;
    }
    public MenuItemInfo(String name, Drawable iconId, Intent intent) {
        this.name = name;
        this.args = "";
        this.intent = intent;
        this.iconResId = 0;
        this.iconDrawable = iconId;
    }
    public MenuItemInfo(String name, Drawable iconId, String args) {
        this.name = name;
        this.args = args;
        this.iconResId = 0;
        this.iconDrawable = iconId;
    }

    @Override
    public String toString() {
        return "[" + name + ", " + args + "]";
    }
}
